package org.csmzxy.class2333;
class Animal{
    public void shout(){
        System.out.println("喵喵...");
    }
}
class Dog extends Animal{
    public void shout(){
        System.out.println("旺旺...");
    }
    public void eat(){
        System.out.println("吃骨头...");
    }
}

public class Example14 {
    public static void main(String[] args){
        Dog dog = new Dog();
        Animal an = dog;
        an.shout();

    }
}
